#include "widget.h"
#include "ui_widget.h"
#include "mythread.h"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    MyThread* t1 = new MyThread(this);
    MyThread* t2 = new MyThread(this);

    t1->start();
    t2->start();
}

Widget::~Widget()
{
    delete ui;
}

